package com.zlll.winner.service.lhtUser;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.zlll.winner.business.model.lhtUser.LhtUserIdentityType;
import com.zlll.winner.mapper.lhtUser.LhtUserIdentityTypeMapper;
import com.zlll.winner.business.service.lhtUser.ILhtUserIdentityTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.dubbo.config.annotation.Service;

import java.util.List;


/**
 * <p>
 * 用户身份表 服务实现类
 * </p>
 *
 * @author qsx
 * @since 2019-09-05
 */
@Service
public class LhtUserIdentityTypeServiceImpl extends ServiceImpl<LhtUserIdentityTypeMapper, LhtUserIdentityType> implements ILhtUserIdentityTypeService {

    @Override
    public List<LhtUserIdentityType> getIdentityTypeList() {
        LambdaQueryWrapper<LhtUserIdentityType> wrapper = Wrappers.lambdaQuery();
        wrapper.eq(LhtUserIdentityType::getIsDel,0);
        List<LhtUserIdentityType> types =list(wrapper);
        return types;
    }
}
